﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BusinessEntities.Model
{
    public class Event
    {
        [Key]
        public int ID { get; set; }
        public EventType EventType { get; set; }
        public DateTime DateOfEvent { get; set; }
        public string Name { get; set; }
        public string MaleActor { get; set; }
        public string FemaleActor { get; set; }

        //Hall
        public int HallID { get; set; }
        public virtual Hall Hall { get; set; }

        //User
        public int UserID { get; set; }
        public User User { get; set; }
    }

    public enum EventType
    {
        [Description("Wedding")]
        Wedding,
        [Description("Bar Mitzva")]
        BarMitzva,
        [Description("Bat Mitzva")]
        BatMitzva,
        [Description("Brit")]
        Brit,
        [Description("Engagement")]
        Engagement
    }
    public class EventReport
    {
        public int TotalGuestsInvited { get; set; }
        public int TotalGuestsRSVPd { get; set; }
        public int TotalGuestsComing { get; set; }
        public Event Event { get; set; }
    }
}
